<div>
  <h2>基础用法</h2>
  <el-popconfirm title="这是一段内容确定删除吗？">
    <el-button type="primary">删除</el-button>
  </el-popconfirm>
  <h2>自定义</h2>
  <el-popconfirm confirm-button-text="好的" cancel-button-text="不用了" icon="el-icon-info" icon-color="red" title="确定删除吗？"
    on-confirm="confirm()" on-cancel="cancel()" hide-icon="true">
    <el-button type="primary">删除</el-button>
  </el-popconfirm>
</div>